﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SearchForWorkitemsChanges.ExternalActions
{
    /// <summary>
    /// This class is a implementing sample of <see cref="IExternalAction"/>
    /// </summary>
    internal class HelloWorldAddOn : IExternalAction
    {
        /// <summary>
        /// Name displayed on the button
        /// </summary>
        public string DisplayName
        {
            get { return "Hello World !"; }
        }

        /// <summary>
        /// ToolTip displayed on the button
        /// </summary>
        public string TooltipDescription
        {
            get { return "Test addon Hello world !"; }
        }

        /// <summary>
        /// Execute called on button click
        /// </summary>
        /// <param name="workitems">The search result</param>
        public void Execute(IEnumerable<Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem> workitems)
        {
            MessageBox.Show("Hello World !");
        }
    }
}
